import { Component } from "react"


class Son extends Component {
  
  render () {
    console.log('接收:', this.props);

    return(
      <>
      <div>类子组件</div>   
      <ul>
        <li>{this.props.count}</li>
      </ul>   
      </>

    )
  }
}

class App extends Component {
  state = {
    count: 0
  }

  render () {
    return (
      <>
      <div>父组件</div>
      <hr />
      <Son count={this.state.count} />
      </>
    )
  }
}

export default App